<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>PC来源数据上传</title>
<link href="/css/css.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="http://pic2.58.com/n/tuan/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="/javascript/jquery.form.js"></script>
<script type="text/javascript" src="/javascript/ajaxfileupload.js"></script>
<script type="text/javascript">
$(function() {
	var msg = $("#message").val();
	if (msg == "success") {
		alert("上传成功！");
	} else if (msg == "error") {
		alert("上传失败!");
	}
	$("#upload").click(function(){
		$('#uploadform').attr('action','/datareport/upload/upload_PC');
		$('#uploadform').submit();
	});
	$("#download_PC").click(function(){
		$('#uploadform').attr('action','/datareport/download/download_PC');
		$('#uploadform').submit();
	});
});
</script>
</head>
<body>
<div class="lr_both">
<div class="right_conts">
  <div class="mg_tt">
    <div class="right_search">
      <div class="rs_title_bg">
        <h2 class="rs_title">PC来源数据</h2>
      </div>
    </div>
	</br>
	</br>
	
	
	
	<form id="uploadform" name="uploadform" action="/datareport/upload/upload_PC" method="post" ENCTYPE="multipart/form-data">
    <input type="hidden" id="message" name="message" value="$!{message}" />
    <div class="table_div" align="center">
	  <input type="hidden" id="share" name="share" value="0" />
      <table class="sj_tl"  width="70%" border="0" cellspacing="0" cellpadding="0">
		<tr>
          <th align="center" colspan="2">上传文件&nbsp;&nbsp;&nbsp;&nbsp;
			<span style="color:red">(请上传 txt 或者excel格式的文件)</span>
		  </th>
		</tr>
			<tr>
				<td align="center" >PC数据来源</td>
				<td align="center" >
					<input type="file"   name="PCSourceFile" id="PCSourceFile"  onchange="uploadDatas('PCSourceFile')" value=""/> 
				</td>
			</tr>
		
	 </table>
		</br>
	  <table class="sj_tl"  width="70%" border="0" cellspacing="0" cellpadding="0">
	  <tr>
          <th align="center" colspan="2">
            <input type="button"       id="upload" name="upload"  value="上传"/>
			&nbsp;	&nbsp;	&nbsp;	&nbsp;	&nbsp;	&nbsp;	&nbsp;	&nbsp;
			 <input type="button"   id="download_PC" name="download_PC"  value="下载"/>
			&nbsp;	&nbsp;	&nbsp;	&nbsp;	&nbsp;	&nbsp;	&nbsp;	&nbsp;
			<input type="reset"    value="重置"/>
		  </th>
		</tr>
      </table>
    </div>
	</form>
  </div>

</div>
</div>
</body>
</html>
